package com.tsd.system.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统操作日志
 *
 * @author david
 * @date 2021/07/05 15:04:02
 */
@ApiModel(description = "系统操作日志")
public class SysLogInfo implements Serializable {

    @ApiModelProperty(value = "主键，自动增长", example = "1")
    private Long id;

    @ApiModelProperty(value = "创建时间", example = "1")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date create_time;

    @ApiModelProperty(value = "发生日志时间", example = "1")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date log_time;

    @ApiModelProperty(value = "用户sid", example = "1")
    private String user_sid;

    @ApiModelProperty(value = "用户名称", example = "1")
    private String user_name;

    @ApiModelProperty(value = "访问的uri", example = "1")
    private String uri;

    @ApiModelProperty(value = "操作名称", example = "1")
    private String operation;

    @ApiModelProperty(value = "请求头参数", example = "1")
    private String header_data;

    @ApiModelProperty(value = "参数数据", example = "1")
    private String params_data;

    @ApiModelProperty(value = "参数描述（就是对数据的翻译）", example = "1")
    private String params_summary;

    @ApiModelProperty(value = "执行时长（毫秒）", example = "1")
    private Integer duration_ms;

    @ApiModelProperty(value = "结果编码", example = "1")
    private String result_code;

    @ApiModelProperty(value = "结果信息", example = "1")
    private String result_msg;

    @ApiModelProperty(value = "设备类型，chrome，ie，edge，Android，ios", example = "1")
    private String device_type;

    @ApiModelProperty(value = "发起agent", example = "1")
    private String user_agent;

    @ApiModelProperty(value = "发起位置", example = "1")
    private String referer;

    @ApiModelProperty(value = "用户ip", example = "1")
    private String user_ip;

    @ApiModelProperty(value = "服务器ip", example = "1")
    private String server_ip;

    @ApiModelProperty(value = "服务器端口", example = "1")
    private Integer server_port;

    @ApiModelProperty(value = "扩展预留字段", example = "1")
    private String ext0;

    @ApiModelProperty(value = "扩展预留字段", example = "1")
    private String ext1;

    @ApiModelProperty(value = "扩展预留字段", example = "1")
    private String ext2;

    @ApiModelProperty(value = "扩展预留字段", example = "1")
    private String ext3;

    @ApiModelProperty(value = "扩展预留字段", example = "1")
    private String ext4;

    @ApiModelProperty(value = "扩展预留字段", example = "1")
    private String ext5;

    @ApiModelProperty(value = "扩展预留字段", example = "1")
    private String ext6;

    @ApiModelProperty(value = "扩展预留字段", example = "1")
    private String ext7;

    @ApiModelProperty(value = "扩展预留字段", example = "1")
    private String ext8;


    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreate_time() {
        return this.create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getLog_time() {
        return this.log_time;
    }

    public void setLog_time(Date log_time) {
        this.log_time = log_time;
    }

    public String getUser_sid() {
        return this.user_sid;
    }

    public void setUser_sid(String user_sid) {
        this.user_sid = user_sid;
    }

    public String getUser_name() {
        return this.user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUri() {
        return this.uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getOperation() {
        return this.operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getParams_data() {
        return this.params_data;
    }

    public void setParams_data(String params_data) {
        this.params_data = params_data;
    }

    public String getParams_summary() {
        return this.params_summary;
    }

    public void setParams_summary(String params_summary) {
        this.params_summary = params_summary;
    }

    public Integer getDuration_ms() {
        return this.duration_ms;
    }

    public void setDuration_ms(Integer duration_ms) {
        this.duration_ms = duration_ms;
    }

    public String getResult_code() {
        return this.result_code;
    }

    public void setResult_code(String result_code) {
        this.result_code = result_code;
    }

    public String getResult_msg() {
        return this.result_msg;
    }

    public void setResult_msg(String result_msg) {
        this.result_msg = result_msg;
    }

    public String getDevice_type() {
        return this.device_type;
    }

    public void setDevice_type(String device_type) {
        this.device_type = device_type;
    }

    public String getUser_agent() {
        return this.user_agent;
    }

    public void setUser_agent(String user_agent) {
        this.user_agent = user_agent;
    }

    public String getReferer() {
        return this.referer;
    }

    public void setReferer(String referer) {
        this.referer = referer;
    }

    public String getUser_ip() {
        return this.user_ip;
    }

    public void setUser_ip(String user_ip) {
        this.user_ip = user_ip;
    }

    public String getServer_ip() {
        return this.server_ip;
    }

    public void setServer_ip(String server_ip) {
        this.server_ip = server_ip;
    }

    public Integer getServer_port() {
        return this.server_port;
    }

    public void setServer_port(Integer server_port) {
        this.server_port = server_port;
    }

    public String getExt0() {
        return this.ext0;
    }

    public void setExt0(String ext0) {
        this.ext0 = ext0;
    }

    public String getExt1() {
        return this.ext1;
    }

    public void setExt1(String ext1) {
        this.ext1 = ext1;
    }

    public String getExt2() {
        return this.ext2;
    }

    public void setExt2(String ext2) {
        this.ext2 = ext2;
    }

    public String getExt3() {
        return this.ext3;
    }

    public void setExt3(String ext3) {
        this.ext3 = ext3;
    }

    public String getExt4() {
        return this.ext4;
    }

    public void setExt4(String ext4) {
        this.ext4 = ext4;
    }

    public String getExt5() {
        return this.ext5;
    }

    public void setExt5(String ext5) {
        this.ext5 = ext5;
    }

    public String getExt6() {
        return this.ext6;
    }

    public void setExt6(String ext6) {
        this.ext6 = ext6;
    }

    public String getExt7() {
        return this.ext7;
    }

    public void setExt7(String ext7) {
        this.ext7 = ext7;
    }

    public String getExt8() {
        return this.ext8;
    }

    public void setExt8(String ext8) {
        this.ext8 = ext8;
    }

    public String getHeader_data() {
        return header_data;
    }

    public void setHeader_data(String header_data) {
        this.header_data = header_data;
    }
}
